package com.glacier.cloud.order.remote;

import com.glacier.cloud.order.entity.dto.cmd.ProductStockLockCmd;
import com.glacier.cloud.order.remote.fallback.ProductClientServiceFallback;
import com.glacier.framework.component.dto.response.Response;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * date 2024-01-04 17:17
 *
 * @author glacier
 * @version 1.0
 */
@FeignClient(name = "product-serv", contextId = "product-serv", path = "/product", fallback = ProductClientServiceFallback.class)
public interface ProductClientService {
    @PostMapping("/lockStock")
    Response<Integer> lockStock(@RequestBody ProductStockLockCmd productStockLockCmd);
}
